import { getHttp } from "../utils/http";

const api = {
    getImgList: () => {
        return getHttp("/home/swiper");
    },
    getGroupList: () => {
        return getHttp("/home/groups");
    },
    getNewsList: () => {
        return getHttp('/home/news');
    },
    getCity: (data) => {
        return getHttp("/area/city", data);
    },
    getHot: () => {
        return getHttp("/area/hot");
    },
    getInfo: (data) => {
        return getHttp("/area/info", data);
    }
}
export default api;